﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace BGSpaceShooter
{
    public class GameObjectController
    {
        public GameObjectContainer GameObjectContainer { get; set; }

        public GameObjectController()
        {
            GameObjectContainer = new GameObjectContainer();
        }

        public int Player
        {
            get { return GameObjectContainer.Player; }
            set { GameObjectContainer.Player = value; }
        }

        public StarFighter PlayerStarFighter
        {
            get { return GameObjectContainer.PlayerStarFighter; }
        }

        /// <summary>
        /// Tworzy gracza o zadanym id
        /// </summary>
        public void CreatePlayer(int id, Vector3 position, Matrix rotation)
        {
            GameObjectContainer.CreateStarFighter(id, position, rotation);
        }

        public List<IDrawer> GetGameObjectDrawers()
        {
            return GameObjectContainer.GetObjectDrawers();
        }

        public List<IDrawer> GetBillboardDrawers()
        {
            return GameObjectContainer.GetBillboardDrawers();
        }
    }
}
